<template>
	<view class="agreement-view"><web-view :src="webUrl"></web-view></view>
</template>

<script>
export default {
	data() {
		return {
			content: '',
			webUrl:"",
			protocol:"https://admin-shop.kaying.cc/protocol.html",//用户协议
			policy:"https://admin-shop.kaying.cc/policy.html",//隐私政策
		};
	},
	onLoad(options) {
		if(options&&options.type){
			let title=""
			if(options.type==="protocol"){
				this.webUrl=this.protocol
				title="用户协议"
			}else if(options.type==="policy"){
				this.webUrl=this.policy
				title="隐私政策"
			}
			uni.setNavigationBarTitle({
				title
			});
		}
	},
	onReady: function() {}
};
</script>
<style>
.agreement-view {
}
</style>
